GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
GtkAllocation child_allocation;
- child_allocation.x = get_bin_window_x (stack);
- child_allocation.y = get_bin_window_y (stack);
-
if (priv->last_visible_child)
{
int child_width, child_height;
&min, &nat, NULL, NULL);
child_width = MAX (min, width);
gtk_widget_measure (priv->last_visible_child->widget, GTK_ORIENTATION_VERTICAL,
- child_allocation.width,
+ child_width,
&min, &nat, NULL, NULL);
child_height = MAX (min, height);
&(GtkAllocation) { 0, 0, child_width, child_height }, -1);
}
+ child_allocation.x = get_bin_window_x (stack);
+ child_allocation.y = get_bin_window_y (stack);
child_allocation.width = width;
child_allocation.height = height;